import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'

// 引入uView主JS库
import uView from "uview-ui";
Vue.use(uView);

// 引入自定义工具
import tools from '@/common/tools.js'
Vue.prototype.$tools = tools;

// 引入高性能的 JavaScript 实用工具库
import _ from 'lodash'
Vue.prototype._ = _

// vuex
import store from "./store"
Vue.prototype.$store = store;

// 请求
import request from "@/common/request.js"
Vue.prototype.$request = request;

import topVue from '@/components/topVue.vue'
Vue.component("topVue", topVue)

// 过滤器
import  '@/common/filters.js'

const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif